package com.jjyu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jjyu.entity.FavoriteRestaurant;

import java.util.List;

public interface FavoriteRestaurantService extends IService<FavoriteRestaurant> {
    // 新增商品收藏
    boolean addFavoriteRestaurant(FavoriteRestaurant favoriteRestaurant);

    // 删除商品收藏
    boolean deleteFavoriteRestaurant(Integer favoriteId);

    // 修改商品收藏
    boolean updateFavoriteRestaurant(FavoriteRestaurant favoriteRestaurant);

    // 根据用户ID查找商品收藏
    List<FavoriteRestaurant> findFavoriteRestaurantsByUserId(Integer userId);
}
